package com.ytjj.qmyx.users.enums;

import lombok.Getter;

/**
 *
 * @version 1.0
 *
 */
@Getter
public enum DynamicStatusEnums {

    CHECKING(2,"审核中"),
    PASS(1,"审核通过"),
    HIDDEN(0,"不显示"),
    UNPASS(3,"审核不通过");

    private int code;

    private String msg;

    DynamicStatusEnums(int code, String msg){
        this.code = code;
        this.msg = msg;
    }


    public static String getMsg(int code) {
        DynamicStatusEnums[] values = DynamicStatusEnums.values();
        for(DynamicStatusEnums enums : values){
            if(enums.getCode() == code){
                return enums.getMsg();
            }
        }
        return null;
    }
}
